/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-12-13 17:04:37
 * @LastEditors  : cxguo
 * @LastEditTime : 2019-12-27 14:57:21
 */
import SecondMenu from '@/components/SecondMenu'

export default [
  {
    title: '店铺管理',
    path: '/setup',
    component: SecondMenu,
    children: [
      {
        path: 'shop_list',
        name: 'ShopList',
        component: () => import('@/views/store/shop-list.vue'),
        meta: { title: '门店' }
      },
      {
        path: 'store_list',
        name: 'StoreList',
        component: () => import('@/views/store/store-list.vue'),
        meta: { title: '仓库' }
      },
      {
        path: 'account_list',
        name: 'AccountList',
        component: () => import('@/views/account'),
        meta: { title: '结算账户' }
      },
      {
        path: 'employee_list',
        component: () => import('@/views/employee'),
        name: 'EmployeeList',
        meta: { title: '员工', add: true }
      },
      {
        path: 'employee_add',
        component: () => import('@/views/employee/save-data.vue'),
        name: 'EmployeeAdd',
        meta: { title: '新增员工' }
      },
      {
        path: 'role_list',
        component: () => import('@/views/sys-manager/role'),
        name: 'RoleList',
        meta: { title: '角色权限' }
      },
      {
        path: 'shopguide_list',
        component: () => import('@/views/sale/sold'),
        name: 'ShopguideList',
        meta: { title: '导购员' }
      },
      {
        path: 'sold_add',
        component: () => import('@/views/sale/sold'),
        name: 'SaleSold',
        meta: { title: '期初信息' }
      }
    ]
  },
  {
    title: '参数设置',
    path: 'params_setup',
    children: [
      {
        path: 'business_list',
        name: 'BusinessList',
        component: () => import('@/views/sale/list-sold'),
        meta: { title: '业务设置' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '单号规则设置' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '打印规则设置' }
      }
    ]
  },
  {
    title: '账户信息',
    path: 'sold_parent',
    children: [
      {
        path: 'sold_list',
        name: 'SaleSoldList',
        component: () => import('@/views/sale/list-sold'),
        meta: { title: '企业资料维护' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '系统重置' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '结存' }
      }
    ]
  }
]
